package com.yiren.manager.service.impl.desk;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yiren.core.exception.MyException;
import com.yiren.core.service.GenericServiceImpl;
import com.yiren.entity.YrConsultCheck;
import com.yiren.manager.repository.desk.YrConsultCheckRepository;
import com.yiren.manager.service.iface.desk.YrConsultCheckService;

@Service
public class YrConsultCheckServiceImpl extends GenericServiceImpl<YrConsultCheck, String> implements YrConsultCheckService{

	@Autowired
	public YrConsultCheckServiceImpl(YrConsultCheckRepository repository) {
		super(repository);
		// TODO Auto-generated constructor stub
	}

	public void updateBetch(List<YrConsultCheck> list) throws MyException {
		for(YrConsultCheck entity : list){
			this.repository.save(entity);
		}	
	}

}
